from django.db import models


class CommonModel(models.Model):
    create_time = models.DateTimeField(auto_now_add=True, verbose_name='创建时间')
    update_time = models.DateTimeField(auto_now=True, verbose_name='最后更新时间')

    class Meta():
        # 将公共表定义成抽象表
        # 只能继承，无法实例化
        abstract = True
